﻿<controls:ChildWindow x:Class="OnlineGameClient.View.GameConfigView"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      xmlns:v="clr-namespace:OnlineGameClient.View"
           Width="400" Height="300" 
           Title="GameConfigView" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel>
            <toolkit:DataField Height="28" HorizontalAlignment="Stretch" VerticalAlignment="Top" Label="Game">
                <ComboBox Name="gamecb" ItemsSource="{Binding GameInfoList}" DisplayMemberPath="GameName" Width="200" HorizontalAlignment="Right"/>
            </toolkit:DataField>
            <v:GameConfigView2 x:Name="configview2" GameInfo="{Binding SelectedItem,ElementName=gamecb}"/>
        </StackPanel>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>